import request from '@/utils/request'

// 查询实验室评测列表
export function listTopic(query) {
  return request({
    url: '/evalution/topic/list',
    method: 'get',
    params: query
  })
}

// 查询实验室评测详细
export function getTopic(instanceId) {
  return request({
    url: '/evalution/topic/' + instanceId,
    method: 'get'
  })
}

// 新增实验室评测
export function addTopic(data) {
  return request({
    url: '/evalution/topic',
    method: 'post',
    data: data
  })
}

// 修改实验室评测
export function updateTopic(data) {
  return request({
    url: '/evalution/topic',
    method: 'put',
    data: data
  })
}

// 删除实验室评测
export function delTopic(instanceId) {
  return request({
    url: '/evalution/topic/' + instanceId,
    method: 'delete'
  })
}

// 导出实验室评测
export function exportTopic(query) {
  return request({
    url: '/evalution/topic/export',
    method: 'get',
    params: query
  })
}
